import request from '@/utils/request.js'

// CFA 题库列表
export function getchapterList(data) {
  return request({
    url: 'api/v2.cfa_topic/chapter',
    method: 'POST',
    data
  })
}

export function getChildQuestions(data) {
  return request({
    url: '/api/v2.cfa_topic/getReading',
    method: 'post',
    data
  })
}

// CFA 题库
export function get_topic(params) {
  return request({
    url: '/api/v2.cfa_topic/get_topic',
    method: 'POST',
    params
  })
}

// 收藏
export function collection(data) {
  return request({
    url: 'api/v2.cfa_topic/collection',
    method: 'post',
    data
  })
}
